//
//  WXAuth.h
//  hongyantub2b
//
//  Created by Apple on 2018/8/23.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

#define  WXAUTH [WXAuth sharedInstance]
typedef void(^loginResultBlock)(BOOL isOK, NSString *openID, NSString *unionID, NSString *userName, NSString *userAvatar,id data);
typedef void(^networkBlock)(id data, NSError *error);
@interface WXAuth : NSObject

//全局管理对象
+ (WXAuth *)sharedInstance;

- (BOOL)handleOpenURL:(NSURL *)url;

- (void)sendWXAuthReq;

- (void)loginAuthWithBlock:(loginResultBlock)resultBlock;
@end
